package com.victor.service;

import java.util.List;

import com.victor.entity.Shopuser;
import com.victor.entity.ShopuserXQ;
import com.victor.entity.ShopuserXQphoto;
import com.victor.entity.ShopuserXQyudingsm;

public interface PartnerService {

	/**
	 * 获取服务伙伴列表(根据类别查询 入住时间倒叙)
	 * 
	 * @return
	 */
	public List<Shopuser> getList(String shopclass, String starttime, String endtime);

	/**
	 * 通过id查询服务伙伴详情
	 * 
	 * @param shopid
	 * @return
	 */
	public Shopuser getXQbyid(String shopid);

	/**
	 * 添加操作日志
	 * 
	 */
//	public int addShopuserLog(ShopuserLog shopuserLog);

	/**
	 * 新建服务伙伴
	 * 
	 * @param shopuser
	 * @return
	 */
	public boolean addShopuser(Shopuser shopuser);

	/**
	 * 冻结服务伙伴
	 * 
	 * @param shopuserid
	 * @return
	 */
	public boolean frozenShopuser(String shopuserid);

	/**
	 * 解除冻结服务伙伴
	 * 
	 * @param shopuserid
	 * @return
	 */
	public boolean relieveFrozenShopuser(String shopuserid);

	/**
	 * 批量删除服务伙伴
	 * 
	 * @param suids
	 * @return
	 */
	public boolean batchDelete(int[] suids);

	/**
	 * 查看操作日志
	 * 
	 * @return
	 */
//	public List<ShopuserLog> getShopuserLogs();

	/**
	 * 修改商家信息
	 * 
	 * @param shopuser
	 * @return
	 */
	public boolean updateShopuser(Shopuser shopuser);

	/**
	 * 添加详情返回id
	 * 
	 * @param shopuserxq
	 * @return
	 */
	public boolean addShopuserXQ(ShopuserXQ shopuserxq);

	/**
	 * 添加内容-图片
	 * 
	 * @param shopuserXQphotos
	 */
	public int addShopuserXQphoto(ShopuserXQphoto shopuserXQphoto);

	/**
	 * 添加内容-预定说明
	 * 
	 * @param shopuserXQyudingsms
	 */
	public int addShopuserXQyudingsm(ShopuserXQyudingsm shopuserXQyudingsm);

	/**
	 * 删除内容
	 * 
	 * @param shopuserxqid
	 * @return
	 */
	public boolean delContext(String shopuserxqid);

	/**
	 * 删除预定说明
	 * 
	 * @param yudingsmid
	 * @return
	 */
	public boolean delYudingsm(String yudingsmid);

	/**
	 * 修改房间信息
	 * 
	 * @param shopuserxq
	 * @return
	 */
	public boolean updateShopuserXQ(ShopuserXQ shopuserxq);

	/**
	 * 删除原图片
	 * 
	 * @param shopuserxqid
	 * @return
	 */
	public boolean deleteXQphotoByxqid(Integer shopuserxqid);

	/**
	 * 添加新图片
	 * 
	 * @param id
	 * @return
	 */
	public boolean insertXQphoto(ShopuserXQphoto shopuserXQphoto);

}
